package com.ihr360.payroll.controller.salarytax;

import com.ihr360.maven.plugin.ModuleCodeStore;
import com.ihr360.maven.plugin.annotation.ModuleDefinition;
import com.ihr360.payroll.model.dto.salary.tax.SalaryTax;
import com.ihr360.payroll.service.salarytax.SalaryTaxService;
import com.ihr360.rest.service.SimpleRestService;
import com.ihr360.rest.webmvc.AbstractRestSimpleWithLongIdController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author richey
 */
@RestController
@RequestMapping("/salaryTaxes")
@ModuleDefinition(mainModuleCode = ModuleCodeStore.Module.SALARY_CODE_ADMIN, mainModuleName = ModuleCodeStore.Module.SALARY_NAME_ADMIN,hasExtendsAbstractRestController=true,
        subModuleCode = ModuleCodeStore.Module.SalaryAdmin.TAX_TABLE_CODE, subModuleName = ModuleCodeStore.Module.SalaryAdmin.TAX_TABLE_NAME)
public class SalaryTaxController extends AbstractRestSimpleWithLongIdController<SalaryTax> {

    @Autowired
    private SalaryTaxService salaryTaxService;

    @Override
    public SimpleRestService<SalaryTax, Long> getSimpleRestService() {
        return salaryTaxService;
    }





}



